body {
  overflow-y: scroll !important;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 0.75rem !important;
  padding-left: 0.75rem !important;
}

.pointer {
  cursor: pointer;
}

.pointer-events {
  pointer-events: auto !important;
}

.not-allowed {
  cursor: not-allowed;
}

.no-click {
  pointer-events: none;
  opacity: 0.65;
}

.upvote:hover {
  color: var(--bs-info);
}

.upvote {
  margin-bottom: -5px;
}

.downvote:hover {
  color: var(--bs-danger);
}

.downvote {
  margin-top: -10px;
}

button[aria-label="view source"] .icon.false {
  transform: scale(0.8);
  -webkit-transform: scale(0.8);
  -ms-transform: scale(0.8);
}

button[aria-label="view source"] .icon.text-success {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
}

button[aria-pressed="true"][aria-label="Upvote"] .icon,
button[aria-pressed="true"][aria-label="Downvote"] .icon,
button[aria-label="Unsave"] .icon {
  transform: scale(1.3);
  -webkit-transform: scale(1.3);
  -ms-transform: scale(1.3);
}

.form-select {
  -moz-appearance: none;
}

.md-div p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.md-div p:last-child {
  margin-bottom: 0;
}

.md-div img {
  max-height: 40vh;
  max-width: 100%;
  height: auto;
}

.md-div h1 {
  font-size: 2rem;
}

.md-div h2 {
  font-size: 1.8rem;
}

.md-div h3 {
  font-size: 1.6rem;
}

.md-div h4 {
  font-size: 1.4rem;
}

.md-div h5 {
  font-size: 1.2rem;
}

.md-div pre {
  white-space: pre;
  overflow-x: auto;
}

.md-div details {
  margin-bottom: 1rem;
}

.vote-bar {
  min-width: 5ch;
  margin-top: -6.5px;
}

.post-title a:visited:not(:hover) {
  color: var(--bs-gray) !important;
}

.icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: middle;
  align-self: center;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.icon-emoji {
  width: 4em;
  height: auto;
  max-height: inherit;
}

.icon-emoji-admin {
  max-width: 24px;
  max-height: 24px;
  display: inline-block;
}

.icon-inline {
  margin-bottom: 2px;
}

.emoji-picker-container {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1000;
  transform: translateX(-50%);
}

@media only screen and (max-width: 992px) {
  .emoji-picker-container {
    width: 100vw;
    transform: translateX(0%);
    position: fixed;
    left: 0;
  }

  .emoji-picker-container > section {
    width: 100% !important;
  }
}

.click-away-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.spinner-large {
  display: grid;
  display: block;
  margin: 1em auto;
  width: 2em;
  height: 2em;
}

.spin {
  animation: spins 2s linear infinite;
}

@keyframes spins {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(359deg);
  }
}

blockquote {
  border-left: 2px solid var(--bs-secondary);
  margin: 0.5em 5px;
  padding: 0.1em 5px;
}

.mouse-icon {
  margin-top: -4px;
}

/* comments */
.new-comments {
  max-height: 50vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.comment-content ul,
.comment-content ol {
  margin-bottom: 1rem;
}

.comments {
  list-style: none;
  padding: 0;
}

.thumbnail {
  height: 80px;
  width: 80px;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.mobile-thumbnail-container .thumbnail {
  width: 100%;
  height: auto;
}

.thumbnail svg {
  height: 1.25rem;
  width: 1.25rem;
}

.no-s-hows {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

hr {
  border-top: 1px solid var(--bs-light);
}

.emoji {
  max-height: 1.2em !important;
}

.text-wrap-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-xs-center {
  text-align: center;
}

.overflow-wrap-anywhere {
  overflow-wrap: anywhere;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.fl-1 {
  flex: 1;
}

.img-blur-thumb {
  filter: blur(10px);
  -webkit-filter: blur(10px);
  -moz-filter: blur(10px);
  -o-filter: blur(10px);
  -ms-filter: blur(10px);
}

.img-blur-icon {
  filter: blur(3px);
  -webkit-filter: blur(3px);
  -moz-filter: blur(3px);
  -o-filter: blur(3px);
  -ms-filter: blur(3px);
}

.img-cover {
  object-fit: cover;
}

.img-expanded {
  max-height: 90vh;
}

.btn-animate:active {
  transform: scale(1.2);
  -webkit-transform: scale(1.2);
  -ms-transform: scale(1.2);
}

/**
 * TODO: Fix this in markup rather than this overly specific selector:
 * https://getbootstrap.com/docs/5.3/components/buttons/#block-buttons
 */
.btn.d-block + .btn.d-block {
  margin-top: 0.5rem;
}

.mini-overlay {
  display: block;
  height: 1.5em;
  width: 1.5em;
  background: rgba(0, 0, 0, 0.7);
  background-color: rgba(0, 0, 0, 0.7);
  border-bottom-left-radius: 0.25rem !important;
  border-top-right-radius: 0.25rem !important;
}

.link-overlay:hover {
  transition: 0.1s;
  -webkit-transition: 0.1s;
  opacity: 1;
}

.link-overlay {
  transition: opacity 0.1s ease-in-out;
  -webkit-transition: opacity 0.1s ease-in-out;
  position: absolute;
  opacity: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  background-color: rgba(0, 0, 0, 0.6);
}

.placeholder {
  height: 50px;
  width: 50px;
}

.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.list-inline-item-action {
  display: inline-block;
}

.list-inline-item-action:not(:last-child) {
  margin-right: 1.2rem;
}

pre {
  white-space: pre-wrap;
  word-break: keep-all;
}

.form-control.search-input {
  float: right !important;
  transition: width 0.2s ease-out 0s !important;
}

br.big {
  display: block;
  content: "";
  margin-top: 1rem;
}

.banner {
  object-fit: cover;
  width: 100%;
  max-height: 240px;
}

.avatar-overlay {
  width: 20vw;
  height: 20vw;
  max-width: 120px;
  max-height: 120px;
  min-width: 80px;
  min-height: 80px;
}

.avatar-pushup {
  margin-top: -60px;
}

.img-icon {
  width: calc(var(--bs-body-line-height) * 1em);
  height: calc(var(--bs-body-line-height) * 1em);
  border-radius: 0.25em;
}

.tribute-container ul {
  margin: 0;
  margin-top: 2px;
  padding: 0;
  list-style: none;
  background: var(--bs-light);
}

.tribute-container li {
  padding: 5px;
  cursor: pointer;
}

.tribute-container li.highlight {
  background: var(--bs-primary);
}

.tribute-container li span {
  font-weight: bold;
}

.tribute-container li.no-match {
  cursor: default;
}

.tribute-container .menu-highlighted {
  font-weight: bold;
}

.honeypot {
  display: none !important;
}

.slight-radius {
  border-radius: 4px;
}

.modlog-choices-font-size {
  font-size: 0.9375rem !important;
}

.preview-lines {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

#emoji-picker {
  width: 100%;
}

.skip-link {
  top: -40px;
  transition: top 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

.skip-link:focus {
  top: 0;
}

.totp-link {
  width: fit-content;
}

.oauth-item details[open] .oauth-item-caret {
  transform: rotate(90deg);
}

.default-oauth-providers-section > ul {
  list-style: none;
}

em-emoji-picker {
  width: 100%;
}

.language-item:focus {
  background-color: var(--bs-info-bg-subtle) !important;
}

.fade-preview {
  --mask: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0,
      rgba(0, 0, 0, 1) 40%,
      rgba(0, 0, 0, 0) 95%,
      rgba(0, 0, 0, 0) 0
    )
    100% 50% / 100% 100% repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  max-height: 100px;
}
